﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SetfNovelLib.Entities;
using SetfNovelLib;

namespace StefNovel
{
    public partial class SiteMaster : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["book"] == null)
                Session["book"] = TestStef.GenerateBook();
            BookInfo b = Session["book"] as BookInfo;
            if (b != null)
            {
                lblBookTitle.Text = b.Title;
            }
            else
                lblBookTitle.Text = "404 - Book not found";

        }
    }
}
